-- GENERATED SPELL FOR [Frenzied Gargoyle] --


function spell0_27691(pUnit, Event) --@Gargoyle Strike,n/a--
pUnit:FullCastSpellOnTarget(31664,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27691', 1500, 1)
end

function Sorts_27691(pUnit, Event)
local choix_sorts_27691 = math.random(0, 0)
if choix_sorts_27691 == 0 then
pUnit:RegisterEvent('spell0_27691', 1, 1)
end
end

function mob27691_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27691', math.random(1500, 3000), 1)
end

function mob27691_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27691_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27691_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27691, 1, 'mob27691_Action')
RegisterUnitEvent(27691, 2, 'mob27691_Leave')
RegisterUnitEvent(27691, 3, 'mob27691_Kill')
RegisterUnitEvent(27691, 4, 'mob27691_Die')
